<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.5"/>
<title>T3D: T3D::ParticleEmitter Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td style="padding-left: 0.5em;">
   <div id="projectname">T3D
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.5 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="pages.html"><span>Related&#160;Pages</span></a></li>
      <li class="current"><a href="annotated.html"><span>Classes</span></a></li>
      <li><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="annotated.html"><span>Class&#160;List</span></a></li>
      <li><a href="classes.html"><span>Class&#160;Index</span></a></li>
      <li><a href="hierarchy.html"><span>Class&#160;Hierarchy</span></a></li>
      <li><a href="functions.html"><span>Class&#160;Members</span></a></li>
    </ul>
  </div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Friends</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Pages</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><b>T3D</b></li><li class="navelem"><a class="el" href="class_t3_d_1_1_particle_emitter.html">ParticleEmitter</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pro-attribs">Protected Attributes</a> &#124;
<a href="class_t3_d_1_1_particle_emitter-members.html">List of all members</a>  </div>
  <div class="headertitle">
<div class="title">T3D::ParticleEmitter Class Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p>Standard Particle Emitter.  
 <a href="class_t3_d_1_1_particle_emitter.html#details">More...</a></p>

<p><code>#include &lt;<a class="el" href="_particle_emitter_8h_source.html">ParticleEmitter.h</a>&gt;</code></p>
<div class="dynheader">
Inheritance diagram for T3D::ParticleEmitter:</div>
<div class="dyncontent">
 <div class="center">
  <img src="class_t3_d_1_1_particle_emitter.png" usemap="#T3D::ParticleEmitter_map" alt=""/>
  <map id="T3D::ParticleEmitter_map" name="T3D::ParticleEmitter_map">
<area href="class_t3_d_1_1_component.html" alt="T3D::Component" shape="rect" coords="0,0,122,24"/>
</map>
 </div></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:ab595732cf3ae8b9ff4e1b0686f46a24d"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t3_d_1_1_particle_emitter.html#ab595732cf3ae8b9ff4e1b0686f46a24d">ParticleEmitter</a> (float rampUpDuration, float startEmitRate, float runDuration, float emitRate, float rampDownDuration, float endEmitRate, float emitVariability)</td></tr>
<tr class="separator:ab595732cf3ae8b9ff4e1b0686f46a24d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:adfe7eeaf7a934738635b6af39c531fc8"><td class="memItemLeft" align="right" valign="top">virtual&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t3_d_1_1_particle_emitter.html#adfe7eeaf7a934738635b6af39c531fc8">~ParticleEmitter</a> ()</td></tr>
<tr class="separator:adfe7eeaf7a934738635b6af39c531fc8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a836d37d9f84fedf8738056dd5c254abc"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t3_d_1_1_particle_emitter.html#a836d37d9f84fedf8738056dd5c254abc">addInactiveList</a> (<a class="el" href="class_t3_d_1_1_particle_behaviour.html">ParticleBehaviour</a> *particle)</td></tr>
<tr class="separator:a836d37d9f84fedf8738056dd5c254abc"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aaa675e21bb3898e671d3c46f93353b5f"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t3_d_1_1_particle_emitter.html#aaa675e21bb3898e671d3c46f93353b5f">addParticle</a> (<a class="el" href="class_t3_d_1_1_particle_behaviour.html">ParticleBehaviour</a> *particle, bool start)</td></tr>
<tr class="separator:aaa675e21bb3898e671d3c46f93353b5f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a789fad23c7386cd66b0715557019bcdb"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t3_d_1_1_particle_emitter.html#a789fad23c7386cd66b0715557019bcdb">createBillboardParticles</a> (int n, float lifeSpanMin, float lifeSpanMax, <a class="el" href="class_t3_d_1_1_material.html">Material</a> *material, float scale, <a class="el" href="class_t3_d_1_1_transform.html">Transform</a> *parent)</td></tr>
<tr class="memdesc:a789fad23c7386cd66b0715557019bcdb"><td class="mdescLeft">&#160;</td><td class="mdescRight">add particle for use  <a href="#a789fad23c7386cd66b0715557019bcdb">More...</a><br/></td></tr>
<tr class="separator:a789fad23c7386cd66b0715557019bcdb"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a443b4d8cc822f72a4546b55874ef9c28"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t3_d_1_1_particle_emitter.html#a443b4d8cc822f72a4546b55874ef9c28">setPositionRange</a> (float dx, float dy, float dz)</td></tr>
<tr class="separator:a443b4d8cc822f72a4546b55874ef9c28"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:abc24ecd5c59c5a9aba0689bc2ea3dae8"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t3_d_1_1_particle_emitter.html#abc24ecd5c59c5a9aba0689bc2ea3dae8">setDirection</a> (float theta_y, float theta_z, float variance)</td></tr>
<tr class="separator:abc24ecd5c59c5a9aba0689bc2ea3dae8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aaeb924c64d5016f7cd8d483ccbaa0d55"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t3_d_1_1_particle_emitter.html#aaeb924c64d5016f7cd8d483ccbaa0d55">setStartVelocity</a> (float min, float max)</td></tr>
<tr class="separator:aaeb924c64d5016f7cd8d483ccbaa0d55"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:abffbe455f6577326fc67586fd685b9d0"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t3_d_1_1_particle_emitter.html#abffbe455f6577326fc67586fd685b9d0">setAcceleration</a> (float acceleration, float speedMinMax)</td></tr>
<tr class="separator:abffbe455f6577326fc67586fd685b9d0"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a563cf663ae54e0ffd7a8cb2e53bc1b24"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t3_d_1_1_particle_emitter.html#a563cf663ae54e0ffd7a8cb2e53bc1b24">setAlphaFade</a> (float start, float end)</td></tr>
<tr class="separator:a563cf663ae54e0ffd7a8cb2e53bc1b24"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2d332c4e8c32039b216840aaf27518a4"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a2d332c4e8c32039b216840aaf27518a4"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>windDown</b> ()</td></tr>
<tr class="separator:a2d332c4e8c32039b216840aaf27518a4"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1ff4af694a85a106eee997085cd6a2ff"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a1ff4af694a85a106eee997085cd6a2ff"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>restart</b> ()</td></tr>
<tr class="separator:a1ff4af694a85a106eee997085cd6a2ff"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3275b7175682f2e6bf0e2810d2962b0d"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t3_d_1_1_particle_emitter.html#a3275b7175682f2e6bf0e2810d2962b0d">stop</a> (bool clear)</td></tr>
<tr class="separator:a3275b7175682f2e6bf0e2810d2962b0d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a379dcba5dcd16e15e9a0a3cf719ee5f0"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t3_d_1_1_particle_emitter.html#a379dcba5dcd16e15e9a0a3cf719ee5f0">emit</a> (int n, bool count=false)</td></tr>
<tr class="separator:a379dcba5dcd16e15e9a0a3cf719ee5f0"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad350a4ab916215d4467d41d878f086a5"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t3_d_1_1_particle_emitter.html#ad350a4ab916215d4467d41d878f086a5">update</a> (float dt)</td></tr>
<tr class="separator:ad350a4ab916215d4467d41d878f086a5"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header pub_methods_class_t3_d_1_1_component"><td colspan="2" onclick="javascript:toggleInherit('pub_methods_class_t3_d_1_1_component')"><img src="closed.png" alt="-"/>&#160;Public Member Functions inherited from <a class="el" href="class_t3_d_1_1_component.html">T3D::Component</a></td></tr>
<tr class="memitem:ad4d95a7e7e570df833fe4f29ffb66238 inherit pub_methods_class_t3_d_1_1_component"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ad4d95a7e7e570df833fe4f29ffb66238"></a>
virtual void&#160;</td><td class="memItemRight" valign="bottom"><b>init</b> (<a class="el" href="class_t3_d_1_1_game_object.html">GameObject</a> *go)</td></tr>
<tr class="separator:ad4d95a7e7e570df833fe4f29ffb66238 inherit pub_methods_class_t3_d_1_1_component"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pro-attribs"></a>
Protected Attributes</h2></td></tr>
<tr class="memitem:a7b84add44a9fc9a58fc8f53d3896ccc3"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a7b84add44a9fc9a58fc8f53d3896ccc3"></a>
std::vector&lt; <a class="el" href="class_t3_d_1_1_particle_behaviour.html">ParticleBehaviour</a> * &gt;&#160;</td><td class="memItemRight" valign="bottom"><b>particles</b></td></tr>
<tr class="separator:a7b84add44a9fc9a58fc8f53d3896ccc3"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ada8a61ec2319de07d9f97ed43ab92f3f"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ada8a61ec2319de07d9f97ed43ab92f3f"></a>
std::queue&lt; <a class="el" href="class_t3_d_1_1_particle_behaviour.html">ParticleBehaviour</a> * &gt;&#160;</td><td class="memItemRight" valign="bottom"><b>particlesInactive</b></td></tr>
<tr class="separator:ada8a61ec2319de07d9f97ed43ab92f3f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0fb5fc3db96e74856498436251bbcfb3"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a0fb5fc3db96e74856498436251bbcfb3"></a>
float&#160;</td><td class="memItemRight" valign="bottom"><b>elapsed</b></td></tr>
<tr class="separator:a0fb5fc3db96e74856498436251bbcfb3"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8820a4b16deb6c3d8b1c71b26bc940f2"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a8820a4b16deb6c3d8b1c71b26bc940f2"></a>
int&#160;</td><td class="memItemRight" valign="bottom"><b>emitted</b></td></tr>
<tr class="separator:a8820a4b16deb6c3d8b1c71b26bc940f2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1c7b16208759a46d5c1e00fed424a927"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a1c7b16208759a46d5c1e00fed424a927"></a>
float&#160;</td><td class="memItemRight" valign="bottom"><b>rampUpDuration</b></td></tr>
<tr class="separator:a1c7b16208759a46d5c1e00fed424a927"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0a31a83aeaa4013435b1f9d1334fdcb2"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a0a31a83aeaa4013435b1f9d1334fdcb2"></a>
float&#160;</td><td class="memItemRight" valign="bottom"><b>startEmitRate</b></td></tr>
<tr class="separator:a0a31a83aeaa4013435b1f9d1334fdcb2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3bb07816adddbeaec63796e2e058d5f0"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a3bb07816adddbeaec63796e2e058d5f0"></a>
float&#160;</td><td class="memItemRight" valign="bottom"><b>runDuration</b></td></tr>
<tr class="separator:a3bb07816adddbeaec63796e2e058d5f0"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7001ade25c6f0df4a3000bebe77a1a97"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a7001ade25c6f0df4a3000bebe77a1a97"></a>
float&#160;</td><td class="memItemRight" valign="bottom"><b>emitRate</b></td></tr>
<tr class="separator:a7001ade25c6f0df4a3000bebe77a1a97"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5e25a541c82067b45fe3720649143acf"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a5e25a541c82067b45fe3720649143acf"></a>
float&#160;</td><td class="memItemRight" valign="bottom"><b>rampDownDuration</b></td></tr>
<tr class="separator:a5e25a541c82067b45fe3720649143acf"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3a0c64eaa6b85405e3c29451b9cdef9e"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a3a0c64eaa6b85405e3c29451b9cdef9e"></a>
float&#160;</td><td class="memItemRight" valign="bottom"><b>endEmitRate</b></td></tr>
<tr class="separator:a3a0c64eaa6b85405e3c29451b9cdef9e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac30a8d568727b184330f93a116a5f472"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ac30a8d568727b184330f93a116a5f472"></a>
float&#160;</td><td class="memItemRight" valign="bottom"><b>emitVariability</b></td></tr>
<tr class="separator:ac30a8d568727b184330f93a116a5f472"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="inherited"></a>
Additional Inherited Members</h2></td></tr>
<tr class="inherit_header pub_attribs_class_t3_d_1_1_component"><td colspan="2" onclick="javascript:toggleInherit('pub_attribs_class_t3_d_1_1_component')"><img src="closed.png" alt="-"/>&#160;Public Attributes inherited from <a class="el" href="class_t3_d_1_1_component.html">T3D::Component</a></td></tr>
<tr class="memitem:ad42bd6f7170fcad44af2084d2c2f2428 inherit pub_attribs_class_t3_d_1_1_component"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ad42bd6f7170fcad44af2084d2c2f2428"></a>
<a class="el" href="class_t3_d_1_1_game_object.html">GameObject</a> *&#160;</td><td class="memItemRight" valign="bottom"><b>gameObject</b></td></tr>
<tr class="separator:ad42bd6f7170fcad44af2084d2c2f2428 inherit pub_attribs_class_t3_d_1_1_component"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>Standard Particle Emitter. </p>
<p>The particle emitter generates and lauches reusable particles s </p>
<dl class="section author"><dt>Author</dt><dd>David Pentecost </dd></dl>
</div><h2 class="groupheader">Constructor &amp; Destructor Documentation</h2>
<a class="anchor" id="ab595732cf3ae8b9ff4e1b0686f46a24d"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">T3D::ParticleEmitter::ParticleEmitter </td>
          <td>(</td>
          <td class="paramtype">float&#160;</td>
          <td class="paramname"><em>rampUpDuration</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">float&#160;</td>
          <td class="paramname"><em>startEmitRate</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">float&#160;</td>
          <td class="paramname"><em>runDuration</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">float&#160;</td>
          <td class="paramname"><em>emitRate</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">float&#160;</td>
          <td class="paramname"><em>rampDownDuration</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">float&#160;</td>
          <td class="paramname"><em>endEmitRate</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">float&#160;</td>
          <td class="paramname"><em>emitVariability</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Constructor Default constructor for emitter </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">particleCount</td><td>maximum number of active particles </td></tr>
    <tr><td class="paramname">startCount</td><td>number of particles alive when starting system </td></tr>
    <tr><td class="paramname">rampUpDuration</td><td>duration (seconds) to from startEmitRate to emitRate </td></tr>
    <tr><td class="paramname">startEmitrate</td><td>initial emit rate (particles/second) </td></tr>
    <tr><td class="paramname">duration</td><td>duration of particle emit at normal rate </td></tr>
    <tr><td class="paramname">emitRate</td><td>normal emit rate </td></tr>
    <tr><td class="paramname">rampDownDuration</td><td>winding down duration from normal to end emit rate </td></tr>
    <tr><td class="paramname">endEmitRate</td><td>emit rate at end </td></tr>
    <tr><td class="paramname">emitVariability</td><td>random variability in emit rate (0.1 is +/- 10% variability) </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="adfe7eeaf7a934738635b6af39c531fc8"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">T3D::ParticleEmitter::~ParticleEmitter </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>Destructor </p>

</div>
</div>
<h2 class="groupheader">Member Function Documentation</h2>
<a class="anchor" id="a836d37d9f84fedf8738056dd5c254abc"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void T3D::ParticleEmitter::addInactiveList </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="class_t3_d_1_1_particle_behaviour.html">ParticleBehaviour</a> *&#160;</td>
          <td class="paramname"><em>particle</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>setParticle Adds particle to inactive list for reuse IMPORTANT: This is intended only to be used by particles to add themselves back into the inactive list for reuse </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">particle</td><td>particle to add to inactive </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="aaa675e21bb3898e671d3c46f93353b5f"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void T3D::ParticleEmitter::addParticle </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="class_t3_d_1_1_particle_behaviour.html">ParticleBehaviour</a> *&#160;</td>
          <td class="paramname"><em>particle</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>start</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>addParticle Adds a particle to the system for use. Particles would normally be added immediately following the creation of the particle system. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">particle</td><td>particle to add (through its <a class="el" href="class_t3_d_1_1_particle_behaviour.html" title="Standard Particle Behaviour. ">ParticleBehaviour</a> component) </td></tr>
    <tr><td class="paramname">start</td><td>start immediately rather than going into available pool </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="a789fad23c7386cd66b0715557019bcdb"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void T3D::ParticleEmitter::createBillboardParticles </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>n</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">float&#160;</td>
          <td class="paramname"><em>lifeSpanMin</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">float&#160;</td>
          <td class="paramname"><em>lifeSpanMax</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="class_t3_d_1_1_material.html">Material</a> *&#160;</td>
          <td class="paramname"><em>material</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">float&#160;</td>
          <td class="paramname"><em>scale</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="class_t3_d_1_1_transform.html">Transform</a> *&#160;</td>
          <td class="paramname"><em>parent</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>add particle for use </p>
<p>createBillboardParticles Creates particles using <a class="el" href="class_t3_d_1_1_billboard.html">Billboard</a> as a base </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">n</td><td>number of particles to create </td></tr>
    <tr><td class="paramname">lifeSpanMin</td><td>minimum lifespan of particles (seconds) </td></tr>
    <tr><td class="paramname">lifeSpanMax</td><td>maximum lifespan of particles (seconds) </td></tr>
    <tr><td class="paramname">imageFileName</td><td>filename for billboard texture </td></tr>
    <tr><td class="paramname">billboard</td><td>size scaling </td></tr>
    <tr><td class="paramname">parent</td><td>parent <a class="el" href="class_t3_d_1_1_transform.html">Transform</a> for particles </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="a379dcba5dcd16e15e9a0a3cf719ee5f0"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void T3D::ParticleEmitter::emit </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>n</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>count</em> = <code>false</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>update emit particles </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">n</td><td>number of particles to emit </td></tr>
    <tr><td class="paramname">count</td><td>add to total emitted count </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="abffbe455f6577326fc67586fd685b9d0"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void T3D::ParticleEmitter::setAcceleration </td>
          <td>(</td>
          <td class="paramtype">float&#160;</td>
          <td class="paramname"><em>acceleration</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">float&#160;</td>
          <td class="paramname"><em>speedMinMax</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>setAcceleration Sets particles acceleration and min or max speed for all particles </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">acceleration</td><td>particle acceleration (units per second per second) </td></tr>
    <tr><td class="paramname">speedMinax</td><td>min speed if -ve acceleration otherwise max speed </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="a563cf663ae54e0ffd7a8cb2e53bc1b24"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void T3D::ParticleEmitter::setAlphaFade </td>
          <td>(</td>
          <td class="paramtype">float&#160;</td>
          <td class="paramname"><em>start</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">float&#160;</td>
          <td class="paramname"><em>end</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>setAlphaFade Sets alpha blending (fade) gradient from start to end of article lifecycle for all particles. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">start</td><td>start alpha value (1.0 opaque, 0.0 invisible) </td></tr>
    <tr><td class="paramname">max</td><td>end alpha value </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="abc24ecd5c59c5a9aba0689bc2ea3dae8"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void T3D::ParticleEmitter::setDirection </td>
          <td>(</td>
          <td class="paramtype">float&#160;</td>
          <td class="paramname"><em>theta_y</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">float&#160;</td>
          <td class="paramname"><em>theta_z</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">float&#160;</td>
          <td class="paramname"><em>variance</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>setDirection Sets base direction of motion and random variance for particles Assumes bases direction is along +ve x axis </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">theta_y</td><td>rotation around y axis </td></tr>
    <tr><td class="paramname">theta_z</td><td>rotation around z axis </td></tr>
    <tr><td class="paramname">variance</td><td>+/- random variation applied to angles </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="a443b4d8cc822f72a4546b55874ef9c28"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void T3D::ParticleEmitter::setPositionRange </td>
          <td>(</td>
          <td class="paramtype">float&#160;</td>
          <td class="paramname"><em>dx</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">float&#160;</td>
          <td class="paramname"><em>dy</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">float&#160;</td>
          <td class="paramname"><em>dz</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>setPositionRange set initial maximum random distance for all particles from emitter </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">dx</td><td>maximum initial distance from particle emitter in X axis (+/-) </td></tr>
    <tr><td class="paramname">dy</td><td>maximum initial distance from particle emitter in Y axis (+/-) </td></tr>
    <tr><td class="paramname">dz</td><td>maximum initial distance from particle emitter in Z axis (+/-) </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="aaeb924c64d5016f7cd8d483ccbaa0d55"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void T3D::ParticleEmitter::setStartVelocity </td>
          <td>(</td>
          <td class="paramtype">float&#160;</td>
          <td class="paramname"><em>min</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">float&#160;</td>
          <td class="paramname"><em>max</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>setStartVelocity Sets startup seed range for all particles </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">min</td><td>min start speed (units per second) </td></tr>
    <tr><td class="paramname">max</td><td>max start speed </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="a3275b7175682f2e6bf0e2810d2962b0d"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void T3D::ParticleEmitter::stop </td>
          <td>(</td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>clear</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>stop Stop particle system (moves elapsed time to full duration) </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">clear</td><td>stop and hide all active particles immediately </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="ad350a4ab916215d4467d41d878f086a5"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void T3D::ParticleEmitter::update </td>
          <td>(</td>
          <td class="paramtype">float&#160;</td>
          <td class="paramname"><em>dt</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>update regular system update, generate particles as required </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">dt</td><td>elapsed time since last frame </td></tr>
  </table>
  </dd>
</dl>

<p>Reimplemented from <a class="el" href="class_t3_d_1_1_component.html">T3D::Component</a>.</p>

</div>
</div>
<hr/>The documentation for this class was generated from the following files:<ul>
<li>M:/T3Dwin/T3DShaderVersion/T3D/T3D/<a class="el" href="_particle_emitter_8h_source.html">ParticleEmitter.h</a></li>
<li>M:/T3Dwin/T3DShaderVersion/T3D/T3D/ParticleEmitter.cpp</li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Thu Feb 27 2014 10:39:52 for T3D by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.5
</small></address>
</body>
</html>
